package com.example.service;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Service;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class TestStreamConsumer {
	@StreamListener(Sink.INPUT)
	public void receive(String messageBody) {
		log.info("通过stream收到消息，messageBody = {}", messageBody);
	}
}
